FROM harbor.timeforward.cn:8443/old/node-pm2:12.18.3-alpine

LABEL MAINTAINER = "Leo NIE <leonie922@hotmail.com>"

WORKDIR /usr/app

COPY node_modules ./node_modules/
COPY dist ./dist/
COPY server ./server/

EXPOSE 3001

CMD ["pm2-runtime", "/usr/app/server/server.js"]

#docker build -t harbor.timeforward.cn:8443/evaluation-management/app-space-frontend:202103091400 .
#docker run -d --name cwisphere-sso-front -p 3002:3002 --restart always harbor.timeforward.cn:8443/cwisphere/cwisphere-sso-front:202211141715
